import request from "@/utils/request";

// 查询会员列表
export function memberList(query) {
  return request({
    url: "/business/member/memberList",
    method: "get",
    params: query,
  });
}

// 查询厂区会员列表
export function factoryList(query) {
  return request({
    url: "/business/member/factoryList",
    method: "get",
    params: query,
  });
}
// 修改用户
export function updateMember(data) {
  return request({
    url: "/business/member",
    method: "put",
    data,
  });
}


// 查询详情
export function getMember(id) {
  return request({
    url: '/business/member/' + id,
    method: 'get'
  })
}

// 查询用户测评列表   

export function userAppraisalList(query) {
  return request({
    url: "/business/appraisal/userAppraisalList",
    method: "get",
    params: query,
  });
}
// 获取用户测评详细信息
export function getUserAppraisal(id) {
  return request({
    url: '/business/appraisal/userAppraisal/' + id,
    method: 'get'
  })
}

// 查询报告

export function userAppraisalList1(query) {
  return request({
    url: "/business/appraisal/userAppraisalList1",
    method: "get",
    params: query,
  });
}




// 删除评测
export function delappraisal(ids) {
  return request({
    url: '/business/appraisal/' + ids,
    method: 'delete'
  })
}